/* pages/me/index.css */
html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh; /* 确保body至少占满整个视口高度 */
    overflow-y: auto; /* 确保body是唯一的滚动容器 */
    -webkit-overflow-scrolling: touch; /* 改善iOS上的滚动体验 */
}

#pay_app {
    font-family: 'Arial', sans-serif;
    text-align: center;
    color: #333;
    padding-top: 20px;
    padding-bottom: 80px; /* 为tabbar留出空间 */
    box-sizing: border-box; /* 确保padding不增加总高度 */
    position: relative; /* 确保z-index生效 */
    z-index: 1; /* 确保me_app在tabbar之下，如果tabbar有更高的z-index */
}

h1 {
    color: #007bff;
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

button:hover {
    background-color: #218838;
}

.user-info {
    margin-top: 30px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: inline-block;
}

.user-info img {
    margin-bottom: 10px;
}

.user-info p {
    margin: 5px 0;
    font-size: 1.1em;
}

/* 支付成功弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
    min-width: 280px;
    box-sizing: border-box;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.5;
    color: #333;
}

.modal-content button {
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 0; /* 重置通用button的margin-top */
}

.modal-content button:hover {
    background-color: #0056b3;
}
